package com.firebugsoft.calc.dubbo.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.firebugsoft.calc.dubbo.api.service.ICalcService;

@Service
public class CalcService implements ICalcService {
    @Override
    public double add(double a, double b) {
        return a + b;
    }

    @Override
    public double sub(double a, double b) {
        return a - b;
    }

    @Override
    public double mul(double a, double b) {
        return a * b;
    }

    @Override
    public double div(double a, double b) {
        return a / b;
    }
}
